<include file="public@head_meet_show"/>

<div class="cl10"></div>
    <div class="divc w980">
        <div class="fl cm_l">
            <div class="t"><span class="f16 fb">{$title}</span></div>
            <div class="c">
                <div class="nrcontent">
                    {$content}
                </div>
            </div>
        </div>
        <div class="fl m_l pl10">
            <div class="deadtime">

                <div class="cl"></div>
                <div class="t">
                    距离会议开幕还有
                </div>
                <ul class="daojishi-p">
                    <script>
                        function lxfEndtime() {
                            $(".daojishi-p").each(function () {
                                var endtime = new Date({$meet.end_time * 1000}).getTime();//取结束日期(毫秒值)
                                var endtime2 = new Date({$meet.end_time * 1000}).getTime();//取结束日期(毫秒值)

                                var lxfday = $(this).attr("lxfday");//用来判断是否显示天数的变量

                                var nowtime = new Date().getTime();        //今天的日期(毫秒值)
                                var youtime = endtime - nowtime;//还有多久(毫秒值)
                                var seconds = youtime / 1000;
                                var minutes = Math.floor(seconds / 60);
                                var hours = Math.floor(minutes / 60);
                                var days = Math.floor(hours / 24);
                                var CDay = days;
                                var CHour = hours % 24;
                                var CMinute = minutes % 60;
                                var CSecond = Math.floor(seconds % 60);

                                if (days < 0) {
                                    days = 0;
                                }
                                if (CHour < 0) {
                                    CHour = 0;
                                }
                                if (CMinute < 0) {
                                    CMinute = 0;
                                }
                                if (CSecond < 0) {
                                    CSecond = 0;
                                }
                                if (days == 0 && CHour == 0 && CMinute == 0 && CSecond == 0) {
                                    if (endtime < nowtime && endtime2 > nowtime)
                                        $(this).html("<div class='f16 tc'>会议进行中</div>");
                                    else
                                        $(this).html("<div class='f16 tc'>会议已结束</div>");
                                }
                                else {
                                    $(this).html("<li><span id='date'>" + days + "</span></li><li><span id='hours'>" + CHour + "</span></li><li><span id='mins'>" + CMinute + "</span></li><li><span id='secs'>" + CSecond + "</span></li>");
                                }
                            });
                            setTimeout("lxfEndtime()", 1000);
                        };
                        $(function () {
                            lxfEndtime();
                        });
                    </script>
                </ul>
                <div class="c">

                    <if condition="$meet.person_status == 1">
                        <a href="" target="_self" class="but">个人代表注册</a>
                    </if>
                    <if condition="$meet.unit_status == 1">
                        <a href="" target="_self" class="but">单位代表注册</a>
                    </if>
                </div>
            </div>
            <div class="cl10"></div>
            <div class="box time">

                <div class="c">

                    <div class="tit">会议日期</div>
                    <p style="padding-left: 20px">
                        {$meet.start_time|date='Y年m月d日',###}-{$meet.end_time|date='m月d日',###}
                    </p>
                    <div class="tit">征文投稿截止日期</div>
                    <p style="padding-left: 20px">{$meet.register_end_time|date='Y年m月d日',###}
                    </p>
                    <div class="tit">网上注册截止日期</div>
                    <p style="padding-left: 20px">{$meet.register_end_time|date='Y年m月d日',###}</p>
                    <div class="tit">现场报到日期</div>
                    <p style="padding-bottom: 0; padding-left: 20px">{$meet.signed_time|date='Y年m月d日',###}</p>

                </div>
            </div>

        </div>
    </div>
    <div class="cl10"></div>
    <div class="footer">
        <div class="c">


            <div style="text-align:center;clear:both;margin:0 auto;padding:10px 0;">
                <div>
                </div>
                <div>

                </div>
                <div class="adminlogin">
                    <p align="center">
                    </p>
                </div>
            </div>
            <div class="cl"></div>
        </div>
    </div>
</div>
<div style="display:none">
    <script type="text/javascript">
        $(".setbg").parent().addClass("pr");
        $(".setbg").parent().hover(function () { $(this).find(".setbg").show() }
            , function () { $(this).find(".setbg").hide() }

        );

        $(document).ready(function () {
            var maxh=0;
            var height1=$(".l1").height()+$(".time").height();
            var height2=$(".l2").height()+$(".slideBox").height();
            var height3=$(".l3").height()+$(".deadtime").height();
            var oa=[height1,height2,height3];
            oa.sort(function(a,b){
                return a-b;
            });
            maxh=oa[oa.length-1];
            $(".l1").height(maxh-$(".time").height());
            $(".l2").height(maxh-$(".slideBox").height());
            $(".l3").height(maxh-$(".deadtime").height());

            var d = new Date();
            var y = d.getFullYear();// 年
            var m = d.getMonth() + 1;//月
            var ds = d.getDate();//日

            var day = "今天是" + y + "年" + m + "月" + ds + "日"
            $("#showtime").html(day);
        });
    </script>


</div>
</body>


</html>
